/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.agi.gae.comandos;

import br.com.agi.sistema.ComandosDoServidor;
import java.io.IOException;

/**
 *
 * @author renatogrosz@yahoo.com - www.araujogrosz.com.br
 */
public abstract class Comando {
    private ComandosDoServidor servidor;
    public void setSistema(ComandosDoServidor servidor) {
        this.servidor=servidor;
    }

    public void comandar(String[] cmd) throws IOException {
        comandar(servidor,cmd);
    }

    protected abstract void comandar(ComandosDoServidor servidor, String[] cmd) throws IOException;
}
